<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="人力资源管理平台" />
<title>人力资源管理平台</title>
<link type="text/css" rel="stylesheet" href="/TOP2/Public/Admin/adminCss/index.css" />
</head>
<body>
<div class="header">
  <div class="top"> <img class="logo" src="/TOP2/Public/Admin/admin_images/logo.jpg" />
    <ul class="nav">
      <li class="seleli"><a href="<?php echo U('Index/index');?>">首页</a></li>
      <li><a href="<?php echo U('User/index');?>">用户管理</a></li>
      <li><a href="<?php echo U('Goods/index');?>">商品管理</a></li>
      <li><a href="<?php echo U('Category/Index');?>">分类管理</a></li>
      <li><a href="<?php echo U('Order/Index');?>">订单管理</a></li>
      <li><a href="<?php echo U('Comments/Index');?>">评论管理</a></li>
      <li><a href="<?php echo U('Advertising/Index');?>">前台广告</a></li>
    </ul>
  </div>
</div>

<div class="container1">
  <div class="leftbar">
    <div class="lm01"> <img class="peptx" src="/TOP2/Public/Admin/admin_images/tximg.jpg" />
      <div class="pepdet">
        <p class="pepname"><?php echo ($_SESSION['admin_user']['name']=='administrator'?'超级管理员':'用户名错误'); ?></p>
        <p>超级管理员</p>
        <p><a href="<?php echo U('Login/Loginout');?>">_退出_</a></p>
      </div>
      <div class="clear"></div>
    </div>

    <div class="lm02">
      <div class="title"><img class="icon" src="/TOP2/Public/Admin/admin_images/dataicon.jpg" />
        <h2>日历</h2>
      </div>
      <div class="detail"> <img class="" src="/TOP2/Public/Admin/admin_images/kj_01.jpg" /> </div>
    </div>
    <div class="lm03">
      <div class="title"><img style="padding-right:5px;" class="icon" src="/TOP2/Public/Admin/admin_images/weaicon.jpg" />
        <h2>天气</h2>
      </div>
      <div class="detail"> <img class="" src="/TOP2/Public/Admin/admin_images/kj_02.jpg" /> </div>
    </div>
  </div>
  <div class="mainbody">
  
    <!-- 这里不需要去掉 -->
 <!----gerenzhongxin结束-- -->
    <div class="adtip">
       <div class="tip">
       

<p class="goom">早上好，<?php echo ($_SESSION['admin_user']['name']=='administrator'?'超级管理员':'用户名错误'); ?>！</p>
<p>会员<span>15</span>位，<span>3</span>条信息未处理</p>

 <!----goom结束-- -->
      </div> 
      <div class="adv">
        <p>公司统一公告在这边展示</p>
        <span> x </span> </div>
    </div>
    <div class="rig_link">
      <ul>
        <li><a href="#"><img src="/TOP2/Public/Admin/admin_images/img_01.jpg" alt="" title=""></a></li>
        <li><a href="#"><img src="/TOP2/Public/Admin/admin_images/img_02.jpg" alt="" title=""></a></li>
        <li><a href="#"><img src="/TOP2/Public/Admin/admin_images/img_03.jpg" alt="" title=""></a></li>
        <li><a href="#"><img src="/TOP2/Public/Admin/admin_images/img_04.jpg" alt="" title=""></a></li>  
      </ul> 
    </div>
    
 <!-- 这里不需要去掉 -->
 <!----rig_lm01结束-- -->
    

    <div class="rig_lm03">
      <div class="title"><img src="/TOP2/Public/Admin/admin_images/listicon.jpg" class="icon" style="padding-top:13px;">
        <h2>用户管理中心</h2>
      </div>
      <div class="detail">
        <div class="inner03">
          <div id="tabCot_product" class="zhutitab">
            <div class="tabContainer">
             <input type="text" name="" class="tabContainer_in1" /> <input type="submit" value="搜索" class="tabContainer_in2" />
              <div class="clear"></div>
            </div>
            <div id="tabCot_product_1" class="tabCot" >
              <table class="tabindex" width="1063" border="0" cellpadding="0" cellspacing="0" align="center">
                <tr><!--         <span class="titlab">库存</span><span class="xila">&or;</span> -->
                  <th width="80" bgcolor="#f8f8f8" scope="col">ID</th>
                  <th width="100" bgcolor="#f8f8f8" >用户名</th>
                  <th width="180" bgcolor="#f8f8f8" scope="col">性别</th>
                  <th width="100" bgcolor="#f8f8f8" scope="col">注册时间</th>
                  <th width="74" bgcolor="#f8f8f8" scope="col">状态</th>
                  <th width="201" bgcolor="#f8f8f8" scope="col">操作</th>
                </tr>
                <?php if(is_array($userlist)): foreach($userlist as $key=>$value): ?><tr>
                  <td bgcolor="#FFFFFF"><?php echo ($value['id']); ?></td>
                  <td class="datacol" bgcolor="#FFFFFF"><?php echo ($value['name']); ?></td>
                  <td bgcolor="#FFFFFF"><?php echo ($value['sex']?'男':'女'); ?></td>
                  <td class="yccol" bgcolor="#FFFFFF"><?php echo (date('Y-m-d',$value["regtime"])); ?></td>
                  <td class="czcol" bgcolor="#FFFFFF"><!-- <?php echo ($value['status']?'<a href="{:U("User/statusS")">显示</a>':'<a href="">禁用</a>'); ?></td> -->
                  <?php if(($value['status'])==1): ?><a href="<?php echo U('User/Ustatus');?>?id=<?php echo ($value['id']); ?>">显示</a>
                  <?php elseif(($value['status'])==0): ?><a href="<?php echo U('User/Ustatus');?>?id=<?php echo ($value['id']); ?>">禁用</a><?php endif; ?>
              
                 <!--  <td bgcolor="#FFFFFF"><a href="">新品</a></td> -->
                 <!--  <td class="yccol" bgcolor="#FFFFFF">热销</td> -->
                <!--   <td class="czcol" bgcolor="#FFFFFF">2016-07-11</td> -->
                  <td bgcolor="#FFFFFF"><!-- <a href="" class="datacol">详情信息&nbsp;&nbsp;&nbsp;</a> --><a href="<?php echo U('User/reset',array('id'=>$value['id']));?>">重置密码</a>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('User/delete',array('id'=>$value['id']));?>" class="yccol">删除</a></td>
                </tr><?php endforeach; endif; ?>
              </table>
              <div class="fanye">
                <p class="fytip">联系客服 @15821203194</p>
                <div class="yem">
                  <ul>
                    <li><a href="#">First</a></li>
                    <li><a href="#">&lt;</a></li>
                    <li class="sellify"><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">&gt;</a></li>
                    <li><a href="#">Last</a></li>
                  </ul>
                </div>
              </div>
            </div>
            <div id="tabCot_product_2" class="tabCot"  style="display: none;"> 2222222222 </div>
            <div id="tabCot_product_3" class="tabCot"  style="display: none;"> 3333333333 </div>
            <script language="JavaScript" type="text/javascript" src="js/tab.js"></script> 
          </div>
        </div>
      </div>
    </div>



 
    <!----rig_lm0203结束-- -->
  </div>
</div>
<div class="footer"></div>
</body>
</html>